﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Problem1
{
    class FactoryA:Factory
    {

        static private FactoryA factory;
        private  FactoryA()
        { 
        
        }
        public static FactoryA getInstance()
        {
            if (factory == null)
                factory = new FactoryA();
            return factory;
        }
        public Sedan createSedan(String culoare)
        {
            return new SedanA(culoare, "4X4", SedanMotorizari.Diesel, SedanDimensiuni.Mare, SedanDotari.AC);
        }

        public  Coupe createCoupe(String culoare)
        {
            return new CoupeA(culoare,"2X4",CoupeMotorizari.Hidrogen,CoupeDimensiuni.Mediu,CoupeDotari.AC);
        }

        public Mini createMini(String culoare)
        {
            return new MiniA(culoare, "2X2", MiniMotorizari.Benzina, MiniDimensiuni.FoarteMic, MiniDotari.GeamuriNegre);
        }
    }
}
